# makefile

#header include setting!-----------
project_root = /home/lookof/cuby-it

header_path = -I $(project_root)/
header_path += -I $(project_root)/cubE/
#header include setting!-----------

lib_path = -L $(project_root)/cubE/

object =  cubeInstance.o GLBufferManager.o GLShaderManager.o cubeWorld.o quick.o 
lib = ./cubE/cubE.a

CPPFLAGS = -g -Wall $(header_path) $(lib_path)

cuby-it : $(object)
	g++ -g -o cuby-it $(object) $(lib) -lm -lglut -lGL -lGLU -lGLEW -Wall

quick.o : cubeInstance.hh GLBufferManager.hh GLShaderManager.hh cubeWorld.hh

cubeWorld.o : cubeWorld.hh

cubeInstance.o : cubeInstance.hh GLShaderManager.hh GLBufferManager.hh

GLBufferManager.o : GLBufferManager.hh

GLShaderManager.o : GLShaderManager.hh


.PHONY : clean
clean : 
	rm $(object) cuby-it